package co.edu.unal.satacredito.database.entity;

import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.utils.IndexDirection;
import org.bson.types.ObjectId;

/**
 *
 * @author migueldiaz
 */
public class Machine {

    @Id
    private ObjectId id;
    @Indexed(value = IndexDirection.ASC, unique = true)
    private String machineName;
    private String machineIP;
    private int status;
    private int vacant;
    private int typeMachine;

    public Machine() {
    }

    public int getTypeMachine() {
        return typeMachine;
    }

    public void setTypeMachine(int typeMachine) {
        this.typeMachine = typeMachine;
    }

    public Machine(String id) {
        this.id = new ObjectId(id);
    }

    public int getVacant() {
        return vacant;
    }

    public void setVacant(int vacant) {
        this.vacant = vacant;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMachineIP() {
        return machineIP;
    }

    public void setMachineIP(String machineIP) {
        this.machineIP = machineIP;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public ObjectId getId() {
        return id;
    }
}
